#!/usr/bin/python3
# -*- coding: utf-8 -*-
#======================================#
# @Author   : duanqizhong
# @time     : 2022-8-16 10:50
# @file     : logger
# @Software : PyCharm
#======================================#
import logging.config
import os
import sys
from settings import BASE_DIR
from base.func import get_yaml_dict


path_log=os.path.join(BASE_DIR,"conf/log.yaml").replace("\\","/")
logging.config.dictConfig(get_yaml_dict(path_log))
if sys.platform.startswith("win"):
    log = logging.getLogger("console")
else:
    log = logging.getLogger("log")